<?php
use think\facade\Route;


//注册
Route::post('register','home/user/register');
//登录
Route::post('login','home/user/login');
//发送验证码
Route::post('sendcode','home/user/sendcode');

//轮播图列表显示
Route::post('getBannerList','home/banner/getBannerList');
//导航菜单列表显示
Route::post('getNavList','home/banner/getNavList');
//公告菜单显示
Route::post('getNoticeList','home/notice/getNoticeList');


//用户
Route::group('user',function (){
    //获取用户信息
    Route::post('getUserList','home/user/getUserList');
    //修改用户信息
    Route::post('updateUser','home/user/updateUser');
});

//收货
Route::group('address',function (){
    //收货菜单显示
    Route::post('getAddressList','home/address/getAddressList');
    //添加收货菜单
    Route::post('createAddress','home/address/createAddress');
    //更新收货地址
    Route::post('updateAddress','home/address/updateAddress');
    //删除收货地址
    Route::post('deleteAddress','home/address/deleteAddress');
})->middleware(\api\middleware\CheckToken::class);

//上传
Route::group('upload',function (){
    //本地上传图片
    Route::post('uploadImage','home/upload/uploadImage');
    //七牛云上传
    Route::post('uploadQiniu','home/upload/uploadQiniu');
})->middleware(\api\middleware\CheckToken::class);

//支付
Route::post('createMoney','home/money/createMoney')->middleware(\api\middleware\CheckToken::class);

//创建订单
Route::post('createOrder','home/order/createOrder')->middleware(\api\middleware\CheckToken::class);

//余额支付
Route::post('walletPay','home/pay/walletPay')->middleware(\api\middleware\CheckToken::class);

//物流
Route::post('wuliu','home/express/wuliu');
